<html>
<head>
  <title>角色管理</title>
  <meta name="layout" content="common_header"/>
  <link rel="stylesheet" type="text/css" href="${resource(dir: 'css', file: 'jquery.validate.css', absolute: true)}"/>
  <link rel="stylesheet" type="text/css" href="${resource(dir: 'css', file: 'autocomplete.css', absolute: true)}"/>
  <script type="text/javascript">jQuery.noConflict()</script>
  <script type="text/javascript" src="${resource(dir: 'js/jquery', file: 'jquery.form.min.js')}"></script>
  <script type="text/javascript" src="${resource(dir: 'js/jquery', file: 'jquery.metadata.pack.js')}"></script>
  <script type="text/javascript" src="${resource(dir: 'js/jquery', file: 'thickbox.min.js')}"></script>
  <script type="text/javascript" src="${resource(dir: 'js/jquery', file: 'jquery.validate.min.js', absolute: true)}"></script>
  <script type="text/javascript" src="${resource(dir: 'js/jquery', file: 'jquery.blockUI.min.js', absolute: true)}"></script>

  <script type="text/javascript" src="${resource(dir: 'js/prototype', file: 'prototype-1.4.0.js')}"></script>
  <script type="text/javascript" src="${resource(dir: 'js/prototype', file: 'autocomplete.js')}"></script>
  <script type="text/javascript" src="${resource(dir: 'js/jquery', file: 'jquery.validate.custom.js')}"></script>
  <script type="text/javascript" src="${resource(dir: 'js/jquery', file: 'common.custom.js')}"></script>


  <script type="text/javascript">
    jQuery(document).ready(function() {
      jQuery("#submitForm").validate({
        errorPlacement: function(error, element) {
          error.appendTo(element.parent("td"));
        },
        submitHandler: function(form) {
          jQuery.blockUI();
          jQuery(form).ajaxSubmit({
            success: function(response) {
              jQuery.unblockUI();
            }
          });
        }
      });
      bindSave();
    });
  </script>
</head>
<body>
<div id="man_zone">
  <form id="submitForm" name="submitForm" action="${createLink(controller: "scaffold", action: 'save', absolute: true)}" method="post">
    <input type="hidden" name="property" value="${bo?.class?.simpleName}"/>
    <input type="hidden" name="id" value="${bo?.id}"/>
    <input type="hidden" name="view" value="${forward}"/>


    <table width="99%" border="0" align="center" cellpadding="3" cellspacing="1" class="table_style">

      <tr>
        <td width="20%" class="left_title_1">角色名称</td>
        <td width="30%" class="fillin">
          <input type="text" id="roleName" name="roleName" value="${bo?.roleName}" class="{byteMaxLength:20}"/>
        </td>
        <td width="20%" class="left_title_1">角色描述</td>
        <td width="30%" class="fillin">
          <input type="text" id="roleDesc" name="roleDesc" value="${bo?.roleDesc}" class="{byteMaxLength:20}"/>
        </td>
      </tr>



      <tr>
        <td align="center" colspan="2">
          <a id="doSave" href="javaScript:void(0)"><img src="${resource(dir: '/images/admin_ui/', file: 'save1.gif', absolute: true)}" alt="保存"/></a>
        </td>

      </tr>

    </table>

  </form>
</div>
</body>
</html>
